package com.mysite.springcloud.demo.order.mapper;

import com.mysite.springcloud.demo.api.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {

    @Select("select * from ms_order where user_id = #{userId}")
    List<OrderVo> getOrdersByUser(@Param("userId") Long userId);
}
